﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SimpleDropDown.Models;

namespace SimpleDropDown.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            List<SelectListItem> months = new List<SelectListItem>();
            SelectListItem m1 = new SelectListItem() { Text = "Jan", Value = "1" };
            SelectListItem m2 = new SelectListItem() { Text = "Jan1", Value = "11" };
            Calender calender = new Calender();
            calender.Months = new List<SelectListItem>();
            calender.Months.Add(m1);
            calender.Months.Add(m2);
            return View(calender);

        }

    }
}
